// ServerOutputStream.cpp: implementation of the ServerOutputStream class.
//
//////////////////////////////////////////////////////////////////////

#include "ServerOutputStream.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

ServerOutputStream::ServerOutputStream(){
}

void ServerOutputStream::addOutputStream(OutputStream& out){
	this->outputStreams.push_back(out);
}

void ServerOutputStream::write(Mensaje& data){
	
}

void ServerOutputStream::write(char* data, unsigned int length){
	VectorOuputStream::iterator it = outputStreams.begin();
	for(;it!=outputStreams.end();it++){
		(*it).write(data,length);
	}
}

ServerOutputStream::~ServerOutputStream(){
}